<ul class="pm_thread-list" >
<?
if(is_array($records )){
foreach ($records as $r ){ ?>
  <li>
    <div>uid <?=$r['uid']?></div>
    <div>tid <?=$r['tid']?></div>
    <div>用户 <?=$r['tname']?></div>
    <div>更新日期 <?=$r['update_time']?></div>
    <div>内容 <?=$r['content']?></div>
    <div>已读 <?=$r['read']?></div>
    <div>键 <?=$r['key']?></div>
    <div>
      <a href="/pm_thread/view/<?=$r['id']?>" >查看</a>
      <a href="/pm_thread/edit/<?=$r['id']?>" >编辑</a> 
    </div>
  </li>
<?  }
}?>
</ul>
<?=$pagination?>